package com.balance.anole.common.to;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;


public class CodeLookTO implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 6872763450990122565L;


	private String id;

	private String codeTypeId;
	private String codeId;
	private String codeDesc;
	private int codeSeq;
	private String status = "A";

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public CodeLookTO(){

	}

	public CodeLookTO(String codeTypeId, String codeId){
		this.codeTypeId = codeTypeId;
		this.codeId = codeId;
		this.id = codeId + "[" + codeTypeId + "]";
	}

	public String getCodeId() {
		return codeId;
	}
	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getCodeTypeId() {
		return codeTypeId;
	}
	public void setCodeTypeId(String codeTypeId) {
		this.codeTypeId = codeTypeId;
	}
	public String getCodeDesc() {
		return codeDesc;
	}
	public void setCodeDesc(String codeDesc) {
		this.codeDesc = codeDesc;
	}	
	public int getCodeSeq() {
		return codeSeq;
	}
	public void setCodeSeq(int codeSeq) {
		this.codeSeq = codeSeq;
	}

	public static void main(String[] args){
		CodeLookTO a = new CodeLookTO("SEX","A");
		System.out.println(a.getId());
	}

	public String toString(){
		return ToStringBuilder.reflectionToString(this);
	}
}
